package Extendedexercise;

public class Test {
    public static void main(String[] args) {
        say();
        sayHi("zhangsan");
        sayHello("lisi",20);
        double a = getNum();//输出a---模拟对返回值的后续操作
        int b = plus(4,4);//输出b---模拟对返回值的后续操作
        int m = 4, n =5;int g=plus(m,n);//输出g// ---模拟对返回值的后续操作
        int[]c = test(5,10);
        int[]d = test(10,20);
    }

        public static void say(){}
        public static void sayHi(String name){}
        public static void sayHello(String name,int age){}
        public static double getNum(){return 8.88;}
        public static int plus(int a,int b){return a+b;}
        public static int[] test(int len,int max){
        int []arr=new int[len];
        for (int i = 0; i < arr.length; i++) {
            arr[i]=(int)(Math.random()*(max+1));
        }
        return arr;
    }


}
